﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Yugi.Client.Control
{
	/// <summary>
	/// Interaction logic for HandImage.xaml
	/// </summary>
	public partial class HandImage : UserControl
	{
		public HandImage()
		{
			this.InitializeComponent();
            current = State.Default;
            VisualStateManager.GoToState(this, current.ToString(), false);
		}
        public Image MImage
        {
            get
            {
                return this.img;
            }
        }
        State current;
        public State CurrentState
        {
            get
            {
                return current;
            }
            set
            {
                current = value;
                VisualStateManager.GoToState(this, current.ToString(), true);
            }
        }
        public enum State
        {
            Default, Select, Select_DoiThu, Select_Active
        }
	}
}